﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GoogleSync
{
    [Serializable]
    class ReferenceContact : AContact
    {
        String outlookContactID;
        String googleID;
        String outPictureHash = "";
        String googlePictureHash = "";

        Dictionary<Fields, String> values = new Dictionary<Fields, String>();

        public String getOutlookContactID()
        {
            return outlookContactID;
        }

        public String getGoogleContactID()
        {
            return googleID;
        }

        public override void save()
        {
        }

        public void setOutlookContactID(String id)
        {
            outlookContactID = id;
        }

        public void setGoogleContactID(String id)
        {
            googleID = id;
        }

        public override String getField(Fields field)
        {
            String temp = values[field];
            return temp == null ? "" : temp;
        }

        public override void setField(Fields field, String value)
        {
            values.Remove(field);
            values.Add(field, value);
        }

        public override void delete()
        {
        }

        public override byte[] getPictureBytes(String lastEtag)
        {
            return null;
        }

        public void setGooglePictureHash(String hash)
        {
            this.googlePictureHash = hash;
        }

        public String getGooglePictureHash()
        {
            return googlePictureHash;
        }

        public void setOutPictureHash(String hash)
        {
            this.outPictureHash = hash;
        }

        public String getOutPictureHash()
        {
            return outPictureHash;
        }

        public override void setPictureBytes(byte[] pictureBytes)
        {
            // TODO Auto-generated method stub

        }

        public override String getPictureHash()
        {
            // TODO Auto-generated method stub
            return null;
        }

    }
}
